import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('shipmentCollaboration.form.deliveryNoteNumber'),
    width: 'auto',
    prop: 'number',
    fixed: true
  },
  {
    label: i18n.t('shipmentCollaboration.form.supplierName'),
    width: 'auto',
    prop: 'supplierName'
  },
  {
    label: i18n.t('shipmentCollaboration.form.dateIssuance'),
    width: 'auto',
    prop: 'deliveryDate'
  },
  {
    label: i18n.t('shipmentCollaboration.form.arrivalDate'),
    prop: 'arrivalDate',
    width: 'auto'
  },
  {
    label: i18n.t('shipmentCollaboration.form.deliveryMethod'),
    prop: 'deliveryMethod',
    width: 'auto'
  },
  // {
  //   label: '本次发货数量',
  //   prop: 'deliveryQuantity',
  //   width: 'auto'
  // },
  {
    label: '创建日期',
    prop: 'createTime',
    width: 'auto'
  },
  {
    label: '状态',
    prop: 'state',
    width: 'auto'
  }
]
export const actions = [
  {
    key: 'detail',
    text: i18n.t('common.detail'),
    permissions: 'srm:deliveryNote:detail'

  },
  {
    key: 'takeGoods',
    text: i18n.t('shipmentCollaboration.btn.takeDeliveryGoods'),
    permissions: 'srm:deliveryNote:receive'

  }
]

export const detailColumns = [
  // {
  //   label: i18n.t('shipmentCollaboration.form.deliveryNoteNumber'),
  //   width: 150,
  //   prop: 'noteNumber',
  //   fixed: true
  // },
  // {
  //   label:  i18n.t('shipmentCollaboration.form.supplierName'),
  //   width: 150,
  //   prop: 'supplierName'
  // },
  {
    label: i18n.t('shipmentCollaboration.form.purchaseOrderNumber'),
    width: 150,
    prop: 'orderNumber'
  },
  {
    label: i18n.t('shipmentCollaboration.column.materialCode'),
    width: 150,
    prop: 'materialCode'
  },
  {
    label: i18n.t('shipmentCollaboration.column.materialName'),
    width: 150,
    prop: 'materialName'
  },
  {
    label: i18n.t('shipmentCollaboration.column.materialSpecs'),
    width: 150,
    prop: 'materialSpecs'
  },
  {
    label: i18n.t('shipmentCollaboration.column.materialType'),
    width: 150,
    prop: 'materialType'
  },
  {
    label: i18n.t('shipmentCollaboration.column.quantity'),
    width: 'auto',
    prop: 'quantity'
  },
  {
    label: i18n.t('shipmentCollaboration.column.materialUnit'),
    width: 150,
    prop: 'materialUnit'
  },
  {
    label: i18n.t('shipmentCollaboration.column.expectedDeliveryDate'),
    width: 150,
    prop: 'deliveryDate'
  },
  {
    label: i18n.t('shipmentCollaboration.form.deliveryQuantity'),
    width: 150,
    prop: 'deliveryQuantity'
  },
  {
    label: i18n.t('shipmentCollaboration.column.addrName'),
    width: 150,
    prop: 'addrName'
  },
  {
    label: i18n.t('shipmentCollaboration.column.address'),
    width: 150,
    prop: 'address'
  },

  {
    label: i18n.t('shipmentCollaboration.column.contacts'),
    width: 150,
    prop: 'contacts'
  },
  {
    label: i18n.t('shipmentCollaboration.column.contactsPhone'),
    width: 150,
    prop: 'contactsPhone'
  },
  {
    label: i18n.t('shipmentCollaboration.form.state'),
    width: 150,
    prop: 'state'
  }
  // {
  //   label:i18n.t('shipmentCollaboration.column.billState'),
  //   width: 150,
  //   prop: 'billState'
  // },
  // {
  //   label:i18n.t('shipmentCollaboration.column.realityReceivedQuantity'),
  //   width: 'auto',
  //   prop: 'realityReceivedQuantity'
  // },
]
